package com.eva.androidlibrary.api.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * 通用配置
 *
 * @authoArray
 * @date 16/6/12
 */
public class Config implements Parcelable {

    private ArrayList<String> color;
    private ArrayList<String> size;
    private ArrayList<String> unit;

    public ArrayList<String> getColor() {
        return color;
    }

    public void setColor(ArrayList<String> color) {
        this.color = color;
    }

    public ArrayList<String> getSize() {
        return size;
    }

    public void setSize(ArrayList<String> size) {
        this.size = size;
    }

    public ArrayList<String> getUnit() {
        return unit;
    }

    public void setUnit(ArrayList<String> unit) {
        this.unit = unit;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeStringList(this.color);
        dest.writeStringList(this.size);
        dest.writeStringList(this.unit);
    }

    public Config() {
    }

    protected Config(Parcel in) {
        this.color = in.createStringArrayList();
        this.size = in.createStringArrayList();
        this.unit = in.createStringArrayList();
    }

    public static final Creator<Config> CREATOR = new Creator<Config>() {
        public Config createFromParcel(Parcel source) {
            return new Config(source);
        }

        public Config[] newArray(int size) {
            return new Config[size];
        }
    };
}
